﻿using System;

namespace IntroductionToCSharp
{
    class Program
    {
        static void Main()
        {
            // Write to console
            Console.WriteLine("Hello world!");

            // Read from console
            string name = Console.ReadLine();
            Console.WriteLine("Hello {0}!", name);

            // String
            Console.WriteLine("C:\\Windows\\System32\nC:\\Program Files");

            // Operators
            int number = 10;
            int anotherNumber = 20;           

            if (number == 10 && anotherNumber == 20)
            {
                Console.WriteLine("Hello");
            }

            // Ternary operator
            bool isNumber10;
            if (number == 10)
            {
                isNumber10 = true;
            }
            else
            {
                isNumber10 = false;
            }

            isNumber10 = number == 10 ? true : false;
            Console.WriteLine("Number == 10 is {0}", isNumber10);
        }
    }
}
